import PropTypes from 'prop-types'
import React, { memo } from 'react'
import { SectionV1Wrapper } from './style'
import SectionHeader from '@/compoments/section-header';
import SectionRooms from 'Compoments/section-room';
import SectionFooter from '@/compoments/section-footer';

const HomeSectionV1 = memo((props) => {
    const { infoData } = props;
  return (
    <SectionV1Wrapper>
      <SectionHeader title={infoData.title} subTitle={infoData?.subtitle} />
      <SectionRooms roomList={infoData.list} itemWidth='25%' />
      <SectionFooter />
    </SectionV1Wrapper>
  );
})

HomeSectionV1.propTypes = {
  infoData:PropTypes.object
};

export default HomeSectionV1